<template>
  <div class="navchild" v-link="{path: path, activeClass: 'active', replace: true}">
    <a :href="path">
      <img :src="url">
      <p>{{ name }}</p>
    </a>
  </div>
</template>

<script>
  export default {
    data () {
      return {
        baseURL: '/static/img/my91/'
      }
    },
    props: {
      path: '',
      img: '',
      name: ''
    },
    computed: {
      url () {
        return `${this.baseURL}${this.img}`
      }
    }
  }
</script>
